package com.adk.backend.mapper;

import com.adk.backend.entity.LxBillingList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * 账单列表Mapper接口
 */
@Mapper
public interface BillingListMapper extends BaseMapper<LxBillingList> {
    
    /**
     * 根据订单ID查询账单
     */
    LxBillingList selectByOrderId(@Param("orderId") Long orderId, @Param("shipType") Integer shipType);
    
    /**
     * 根据条件查询账单列表
     */
    List<Map<String, Object>> selectBillListByCondition(@Param("params") Map<String, Object> params);
    
    /**
     * 统计账单数量
     */
    Long countBillListByCondition(@Param("params") Map<String, Object> params);
}

